package org.jeecg.modules.pipe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 监测点
 * @Author: jeecg-boot
 * @Date:   2024-05-18
 * @Version: V1.0
 */
@Data
@TableName("iot_pipe_monitor_point")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="iot_pipe_monitor_point对象", description="监测点")
public class MonitorPoint implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;
	/**水厂*/
	@Excel(name = "水厂", width = 15, dictTable = "iot_pipe_water_plant", dicText = "name", dicCode = "id")
	@Dict(dictTable = "iot_pipe_water_plant", dicText = "name", dicCode = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "水厂")
    private Long plantId;
	/**泵站*/
	@Excel(name = "泵站", width = 15, dictTable = "iot_pipe_pump_station", dicText = "name", dicCode = "id")
	@Dict(dictTable = "iot_pipe_pump_station", dicText = "name", dicCode = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "泵站")
    private Long pumpId;
	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String code;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
	/**类型*/
	@Excel(name = "类型", width = 15, dicCode = "reservoir_type")
	@Dict(dicCode = "reservoir_type")
    @ApiModelProperty(value = "类型")
    private String type;
	/**行政区*/
	@Excel(name = "行政区", width = 15)
    @ApiModelProperty(value = "行政区")
    private String region;
	/**具体地址*/
	@Excel(name = "具体地址", width = 15)
    @ApiModelProperty(value = "具体地址")
    private String detailAddress;
	/**管理员*/
	@Excel(name = "管理员", width = 15)
    @ApiModelProperty(value = "管理员")
    private String adminName;
	/**管理员手机*/
	@Excel(name = "管理员手机", width = 15)
    @ApiModelProperty(value = "管理员手机")
    private String adminPhone;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private String longitude;
	/**纬度*/
	@Excel(name = "纬度", width = 15)
    @ApiModelProperty(value = "纬度")
    private String latitude;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String mark;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "device_status")
	@Dict(dicCode = "device_status")
    @ApiModelProperty(value = "状态")
    private Integer status;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private Integer delFlag;
	/**租户*/
	@Excel(name = "租户", width = 15)
    @ApiModelProperty(value = "租户")
    private String tenantId;
}
